package com.paranoidmonkey.ode.Joint;

import com.paranoidmonkey.ode.AndrODE;
import com.paranoidmonkey.ode.World;

public class LMotor extends Joint {
	public LMotor(World world,JointGroup group){
		handle=AndrODE.dJointCreateLMotor (world.getHandle(), group.groupID);
	}
	public void setNumAxes(int num){
		AndrODE.dJointSetLMotorNumAxes (handle, num);
	}
	public void setAxis(int anum, int rel, float x, float y, float z){
		AndrODE.dJointSetLMotorAxis (handle, anum, rel, x, y, z);
	}
	public void setParam(int parameter, float value){
		AndrODE.dJointSetLMotorParam (handle, parameter, value);
	}
	public int getNumAxes(){
		return AndrODE.dJointGetLMotorNumAxes (handle);
	}
	public void getAxis(int anum, float[] result){
		AndrODE.dJointGetLMotorAxis (handle, anum, result);
	}
	public float getParam(int parameter){
		return AndrODE.dJointGetLMotorParam (handle, parameter);
	}

}
